<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>



<!DOCTYPE html>
<html xmlns:c="http://java.sun.com/jsp/jstl/core">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>IntelliFridge_konto</title>
<link href="../CSS/main.css" rel="stylesheet" type="text/css">
<link href="../CSS/menu.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="../JS/jquery.js"></script>
<script type="text/javascript"
	src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" src="../JS/UI.js"></script>

<script type="text/javascript" src="../JS/errorhandler_konto.js">
	
</script>

<c:if test="${empty sessionScope.id}">
	<c:redirect url="../index.jsp?error=3" />
</c:if>

<jsp:useBean id="login" class="database.DbLogin" scope="session" />

</head>
<body>

	<div id="aussenwrapper">

		<div id="innenwrapper">

			<!-- HEADER -->
			<div id="header">
				<div id="logo">
					<img src="../Image/Final.png" height="150" />
				</div>
				<div id="menu">
					<div class="inhalt">
						<ul>
							<li><a href="startseite.jsp">Home</a></li>
							<li><a href="Eingabe/ean_eingabe_ajax.jsp">Eingabe</a></li>
							<li id="current"><a href="konto.jsp">Mein Konto</a></li>
						</ul>
					</div>
				</div>
				<jsp:include page="statusbox.jsp"></jsp:include>
			</div>

			<!--  Content-Bereich -->
			<div id="content">
				<div id="wrapper2">
					<div id="wrapper3">

						<div id="middle">

							<h1>Benutzerprofil</h1>

							<table>
								<tr>
									<td>Username:</td>
									<td><c:out value="${login.username}" /></td>
									<td><input
										onclick="window.open('changeusername.jsp','','height=500,width=800,top=200,left=200');return false"
										type="button" value="Ändern" class="button" /></td>
								</tr>
								<tr>
									<td>Vorname:</td>
									<td><c:out value="${login.vorname}" /></td>
									<td></td>
								</tr>
								<tr>
									<td>Nachname:</td>
									<td><c:out value="${login.nachname}" /></td>
									<td></td>
								</tr>
								<tr>
									<td>E-mail:</td>
									<td><c:out value="${login.mail}" /></td>
									<td><input
										onclick="window.open('changemail.jsp','','height=500,width=800,top=200,left=200');return false"
										type="button" value="Ändern" class="button" /></td>
								</tr>
								<tr>
									<td>Registriert seit:</td>
									<td><c:out value="${login.registrierdatum}" /></td>
									<td></td>
								</tr>
								<tr>
									<td>Password ändern:</td>
									<td></td>
									<td><input
										onclick="window.open('changepw.jsp','','height=500,width=800,top=100,left=100');return false"
										type="button" value="Ändern" class="button" /></td>
								</tr>
								<tr>
									<td>User löschen:</td>
									<td></td>
									<td><input
										onclick="window.open('deleteuser.jsp','','height=500,width=800,top=100,left=100');return false"
										type="button" value="Löschen" class="button" /></td>
								</tr>
							</table>
						</div>
						<!--Ende #middle-->
						<div id="middle">
							<div id="kontosection"></div>
						</div>
						<!--Ende #rechtsbox-->

						<div style="clear: both"></div>
					</div>
					<!--Ende #wrapper3-->
				</div>
				<!--Ende #wrapper2-->



			</div>
			<!--Ende content-->

			<span style="clear: both;"></span>

		</div>
		<!--Ende innenwrapper-->

		<jsp:include page="footernavi.jsp"></jsp:include>

		<!--Ende footer-->
	</div>
	<!--Ende aussenwrapper-->
</body>
</html>